package com.panopset.gui;

/**
 *
 * Provide a name and a default resource path for a document.
 *
 * @author Karl Dinwiddie
 *
 */
public final class DocumentNamer {

    /**
     * @param clazz Class in same package as default resources.
     * @param name Document simple file name.
     */
    public DocumentNamer(final Class<?> clazz, final String name) {
        cls = clazz;
        nm = name;
    }

    /**
     * @return Document name.
     */
    public String getName() {
        return nm;
    }

    /**
     * @return Document class.
     */
    public Class<?> getDocumentClass() {
        return cls;
    }

    /**
     * Name.
     */
    private final String nm;

    /**
     * Class.
     */
    private final Class<?> cls;

}
